package com.itheima.client;

import com.itheima.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "itheima-user")
public interface UserClient {

    @GetMapping(value = "/user/{id}")
    public User one(@PathVariable(value = "id") Long id);
}
